package dao;

import junit.framework.TestCase;

import org.junit.After;
import org.junit.Before;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.transaction.AfterTransaction;
import org.springframework.test.context.transaction.BeforeTransaction;
import org.springframework.test.context.transaction.TransactionConfiguration;
import org.springframework.transaction.annotation.Transactional;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:applicationContext-teste.xml" })
@TransactionConfiguration(transactionManager = "transactionManager", defaultRollback = false)
@Transactional
public abstract class ConfiguracaoTestesUnitarios extends TestCase {

	@BeforeTransaction
	public void antesTransacao() throws Exception {

	}

	@AfterTransaction
	public void depoisTransacao() throws Exception {

	}

	@After
	public void depoisTeste() {

	}

	@Before
	public void antesTeste() {

	}

}
